import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { FormsModule } from '@angular/forms';
import { PersonalComponent } from './personal.component';
import { PersonalService } from '../../services/project/personal/personal.service';
import { ZzjFileUploaderModule } from '@zzj/nag-file-uploader';
import { NgxFlowModule, FlowInjectionToken } from '@flowjs/ngx-flow';
import Flow from '@flowjs/flow.js';
import { FileUploadModule } from '../../components/file-upload/file-upload.module';

// import { FileUploaderComponent } from '../../components/file-uploader/file-uploader.component';
import { FileUploaderModule } from '../../components/file-uploader/file-uploader.module';

@NgModule({
  imports: [
    CommonModule,
    NgZorroAntdModule,
    FormsModule,
    NgxFlowModule,
    // ZzjFileUploaderModule,
    RouterModule.forChild([
      { path: '', component: PersonalComponent }
    ]),
    // FileUploadModule,
    FileUploaderModule
  ],
  declarations: [PersonalComponent],
  providers: [
    PersonalService,
    {
      provide: FlowInjectionToken,
      useValue: Flow
    }
  ]
})
export class PersonalModule { }
